﻿using System.ComponentModel.DataAnnotations;
using MaxStoreErp.Core.BaseClasses;

namespace MaxStoreShop.Domain.Directories
{
    public class ProductCategory : EntityBase
    {
        string _name;

        [StringLength(250)]
        public string Name
        {
            get { return _name; }
            set { OnPropertyChanged(ref _name, value, "Name"); }
        }

        public override string ToString()
        {
            return Name;
        }
    }
}
